package cn.topcodes.tcsf.wechat.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import lombok.Data;
import javax.persistence.Table;
import java.util.Date;

/**
 * 微信消息
 * @author unicorn
 * @date 2017-08-17 15:51:48
 */
@Data
@Table(name="t_wechat_message")
public class WechatMessage extends IdEntity {
	
	public static final String FIELD_TO_USER_NAME = "toUserName";

	public static final String FIELD_FROM_USER_NAME = "fromUserName";

	public static final String FIELD_TIME = "time";

	public static final String FIELD_MSG_TYPE = "msgType";

	public static final String FIELD_MSG_ID = "msgId";

	public static final String FIELD_CONTENT = "content";

	public static final String FIELD_PIC_URL = "picUrl";

	public static final String FIELD_MEDIA_ID = "mediaId";

	public static final String FIELD_TITLE = "title";

	public static final String FIELD_DESCRIPTION = "description";

	public static final String FIELD_URL = "url";

	public static final String FIELD_LOCATION_X = "locationX";

	public static final String FIELD_LOCATION_Y = "locationY";

	public static final String FIELD_SCALE = "scale";

	public static final String FIELD_LABEL = "label";

	public static final String FIELD_THUMB_MEDIA_ID = "thumbMediaId";

	public static final String FIELD_FORMAT = "format";

	public static final String FIELD_RECOGNITION = "recognition";

	public static final String FIELD_PARENT_ID = "parentId";

	public static final String FIELD_MUSIC_URL = "musicUrl";

	public static final String FIELD_HQ_MUSIC_URL = "hqMusicUrl";

	public static final String FIELD_ARTICLES = "articles";

	public static final String FIELD_TYPE = "type";

	public static final String FIELD_WECHAT_MP_ID = "wechatMpId";


	public static final String TYPE_RECEIVE = "Receive";
	public static final String TYPE_SEND = "Send";
	public static final String TYPE_BROADCAST = "Broadcast";
	public static final String TYPE_REPLY = "Reply";

	/**
	 * 目标公众号ID/目标微信用户OpenID
	 */
	private String toUserName;

	/**
	 * 来源公众号ID/来源微信用户OpenID
	 */
	private String fromUserName;

	/**
	 * 消息发送时间
	 */
	private Date time;

	/**
	 * 消息类型
	 */
	private String msgType;

	/**
	 * 消息ID
	 */
	private Long msgId;

	/**
	 * 内容
	 */
	private String content;

	/**
	 * 图片
	 */
	private String picUrl;

	/**
	 * 素材ID
	 */
	private String mediaId;

	/**
	 * 标题
	 */
	private String title;

	/**
	 * 描述
	 */
	private String description;

	/**
	 * 地址
	 */
	private String url;

	/**
	 * 坐标X
	 */
	private Double locationX;

	/**
	 * 坐标Y
	 */
	private Double locationY;

	/**
	 * 缩放比例
	 */
	private Integer scale;

	/**
	 * 标签
	 */
	private String label;

	/**
	 * 缩略图
	 */
	private String thumbMediaId;

	/**
	 * 格式
	 */
	private String format;

	/**
	 * 语音识别结果
	 */
	private String recognition;

	/**
	 * 父级消息
	 */
	private Long parentId;

	/**
	 * 音频
	 */
	private String musicUrl;

	/**
	 * 高清音频
	 */
	private String hqMusicUrl;

	/**
	 * 文章
	 */
	private String articles;

	/**
	 * 类型（收、发）
	 */
	private String type;

	/**
	 * 公众号id
	 */
	private Long wechatMpId;
}